<template>
    <div class="nftshow-container container">
        <div class="title">
            <div class="line-box">
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
            </div>
            <div class="title-text">热门产品</div>
            <div class="line-box line-box-right">
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
            </div>
        </div>
        <div class="homehotnft">
            <div class="homehotnft-img">
                <el-image class="hotimg" :src="HotItemUrl"></el-image>
            </div>
            <div class="homehotnft-text">
                <h1>{{ HotItemName }}</h1>
                <div class="author">
                    <p class="author-title">{{ HotItemAuthor }}</p>
                    <br>
                    <!-- <p class="author-name">jw</p> -->
                </div>
                <div class="nftinformation">
                    <p class="p-in1">寄售价格</p>
                    <h1>￥ {{ HotItemPrice }}</h1>
                    <p class="p-in1">商品描述</p>
                    <div class="instructor">
                        <p>
                            {{ HotItemIntroduce }}
                        </p>
                    </div>
                </div>
                <div class="buy" @click=" toInfo()">
                    立即购买
                    <i class="el-icon-right"></i>
                </div>
            </div>
        </div>
        <div class="title">
            <div class="line-box">
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
            </div>
            <div class="title-text">更多产品</div>
            <div class="line-box line-box-right">
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'NftShow',
    props: {
        HotItemName: {
            typeof: String,
            default: "null"
        },
        HotItemUrl: {
            typeof: String,
            default: "https://imgbed.link/file/15724"
        },
        HotItemAuthor: {
            typeof: String,
            default: null
        },
        HotItemPrice: {
            typeof: Number,
            default: 0
        },
        HotItemIntroduce: {
            typeof: String,
            default: ""
        },
        HotItemId: {
            typeof: String,
            default: ""
        },
        HotItemNumbering: {
            typeof: String,
            default: ""
        }

    },
    data() {
        return {
            hotNftimg: { url: require("@/image/swiper-02.jpg") }
        }
    },
    methods: {
        toInfo() {
            this.$router.push({ path: 'item', query: { group: this.HotItemId, numbering: this.HotItemNumbering } })
        }
    },
    mounted() {

    }
}

</script>
<style  lang="less" scoped>
* {
    margin: 0;
    padding: 0%;
}

.nftshow-container {
    width: 100%;
    min-width: 900px;
    padding: 20px 0 20px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;

    .title {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 20px;
        margin-bottom: 80px;

        .line-box {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;

            // width: 100px;
            .line {
                height: 5px;
                width: 20px;
                margin-left: 5px;
                margin-right: 5px;
                object-fit: cover;
                background: #2469e5;
                transform: skew(45deg);
                box-sizing: border-box;
            }
        }

        .line-box-right {
            .line {
                transform: skew(-45deg);
            }
        }

        .title-text {
            font-size: 18px;
            font-weight: 700;
            padding: 0 10px 0 10px;
        }
    }

    .homehotnft {
        width: 80%;
        min-width: 900px;
        max-width: 1200px;
        height: 700px;
        // background: #2469e5;
        display: flex;
        align-items: center;
        justify-content: center;

        .homehotnft-img {
            position: relative;
            width: 50%;
            height: 100%;
            flex-shrink: 0;
            // background: pink;


            .hotimg {
                display: block;
                position: relative;
                top: 50px;
                width: 90%;
                height: 600px;
                object-fit: cover;
                border-radius: 20px;

            }
        }

        .homehotnft-img::before {
            content: "";
            position: absolute;
            left: -15px;
            top: 30px;
            border: none;
            // border-top: 5px #2469e5 solid;
            // border-left: 5px #2469e5 solid;
            background: #2468e579;
            width: 150px;
            height: 50px;
        }

        .homehotnft-img::after {
            content: "";
            position: absolute;
            right: 20px;
            bottom: 30px;
            border: none;
            background: #2468e57f;
            width: 150px;
            height: 50px;
            z-index: -1;
        }

        .homehotnft-text {
            position: relative;
            width: 50%;
            height: 100%;
            flex-shrink: 0;
            // background: rgb(174, 75, 75);
            padding-top: 65px;
            padding-left: 20px;
            box-sizing: border-box;

            h1 {
                font-size: 3rem;
                text-align: left;
            }

            .author {
                font-size: 1rem;
                text-align: left;
                padding-top: 5px;
                // padding-left: 20px;
                box-sizing: border-box;
                text-indent: 1rem;

                .author-title {
                    color: rgb(185, 178, 178);
                }

                .author-name {
                    font-weight: 600;
                }
            }

            .nftinformation {
                background: white;
                border-radius: 20px;
                margin-top: 30px;
                width: 425px;
                height: 250px;
                padding-top: 20px;
                // box-sizing: border-box;
                background: #fefefe;
                box-shadow: 0 10px 24px rgb(1 0 95 / 10%);


                span {
                    margin-top: 10px;
                    // padding-left: 15px;
                    display: block;
                    text-align: left;
                }

                h1 {
                    // padding-left: 15px;
                }

                .instructor {
                    margin-top: 20px;
                    // margin-bottom: 20px;
                    // height: 60px;
                    padding-left: 15px;
                    padding-right: 15px;
                    box-sizing: border-box;
                    opacity: 0.5;
                    text-align: left;
                    cursor: pointer;
                    transition: 0.3s;
                    display: -webkit-box;
                    -webkit-line-clamp: 3;
                    line-clamp: 3;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                }

                .instructor:hover {
                    opacity: 0.8;

                }
            }

            .buy {
                position: relative;
                margin-top: 100px;
                // margin-left: 15px;
                width: 425px;
                height: 50px;
                border-radius: 28px;
                line-height: 50px;
                background: black;
                color: #fefefe;
                cursor: pointer;
                transition: 0.5s;
            }

            i {
                position: absolute;
                top: 34%;
                right: 10%;
            }

            .buy:hover {
                background: #2469e5;
            }
        }
    }
}
</style>